popup: Mention the popover arrow in the docs
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jan 2021 15:59:59 +0000 (10:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jan 2021 15:59:59 +0000 (10:59 -0500)
Suggested by Jonas.

gdk/gdkpopuplayout.c

index bff14a935cafc33b07a001bc5e4900536e3f29f6..7192ef259d76c04c754ca0af3645cf82467bd01b 100644 (file)
  *
  * ![Sliding popups](popup-slide.png)
  *
- * These hints may be combined, but it is ultimatively up to the windowing
- * system to determine the position and size of the popup. You can learn
- * about the result by calling gdk_popup_get_position_x(),
- * gdk_popup_get_position_y(), gdk_popup_get_rect_anchor() and
- * gdk_popup_get_surface_anchor() after the popup has been presented.
+ * These hints may be combined.
+ *
+ * Ultimatively, it is up to the windowing system to determine the position
+ * and size of the popup. You can learn about the result by calling
+ * gdk_popup_get_position_x(), gdk_popup_get_position_y(),
+ * gdk_popup_get_rect_anchor() and gdk_popup_get_surface_anchor() after the
+ * popup has been presented. This can be used to adjust the rendering. For
+ * example, GtkPopover changes its arrow position accordingly. But you have
+ * to be careful avoid changing the size of the popover, or it has to be
+ * presented again.
  */
 
 struct _GdkPopupLayout